//导入service对象
import service from "../utiles/request/index";


// 薪资项目列表
export function Salaryproject_list(payload = {}) {
    return service.get('/salaryproject/list', payload)
}
//  薪资项目新增
export function Salaryproject_add(payload = {}) {
    return service.post('/salaryproject/add', payload)
}
//  薪资项目修改
export function Salaryproject_edit(payload: any = {}) {
    return service.post('/salaryproject/updata', payload)
}
//  薪资项目删除
export function Salaryproject_delete(payload: any = {}) {
    return service.get('/salaryproject/delete/' + payload.id, payload)
}

// 薪资方案列表
export function Salaryscheme_list(payload = {}) {
    return service.get('/salaryscheme/list', payload)
}
// 薪资方案新增
export function Salaryscheme_add(payload = {}) {
    return service.post('/salaryscheme/add', payload)
}
// 薪资方案编辑
export function Salaryscheme_edit(payload: any = {}) {
    return service.post('/salaryscheme/updata' , payload)
}
// 薪资方案删除
export function Salaryscheme_delete(payload: any = {}) {
    return service.get('/salaryscheme/delete/' + payload.id, payload)
}

// 薪资台账列表
export function Payrollledger_list(payload = {}) {
    return service.get('/payrollledger/list', payload)
}
// 薪资台账删除
export function Payrollledger_delete(payload: any = {}) {
    return service.get('/payrollledger/delete/' + payload.id, payload)
}